package logger

import (
    "gopkg.in/natefinch/lumberjack.v2"
    "log"
)

func InitLogRotate() {
    log.SetOutput(&lumberjack.Logger{
        Filename:   "./logs/application.log",
        MaxSize:    10, // megabytes
        MaxBackups: 3,
        MaxAge:     28, // days
    })
}